-
Notifications
You must be signed in to change notification settings - Fork 2
Implement Undo/Redo operations batching #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
⏭️ No files to mutate for |
|
⏭️ No files to mutate for |
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
|---|---|---|---|
| 🟢 | Statements | 100% | 0/0 |
| 🟢 | Branches | 100% | 0/0 |
| 🟢 | Functions | 100% | 0/0 |
| 🟢 | Lines | 100% | 0/0 |
Test suite run success
1 tests passing in 1 suite.
Report generated by 🧪jest coverage report action from 8cf8828
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
|---|---|---|---|
| 🟢 | Statements | 96.05% | 802/835 |
| 🟢 | Branches | 96% | 216/225 |
| 🟢 | Functions | 87.39% | 194/222 |
| 🟢 | Lines | 95.91% | 773/806 |
Test suite run success
405 tests passing in 24 suites.
Report generated by 🧪jest coverage report action from 8cf8828
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
|---|---|---|---|
| 🟢 | Statements | 97.97% (-0.03% 🔻) |
145/148 |
| 🟢 | Branches | 91.67% (-3.33% 🔻) |
55/60 |
| 🟢 | Functions | 94.74% (-5.26% 🔻) |
18/19 |
| 🟢 | Lines | 97.95% (-0.05% 🔻) |
143/146 |
Show new covered files 🐣
St.❔ |
File | Statements | Branches | Functions | Lines |
|---|---|---|---|---|---|
| 🟢 | OperationsBatch.ts | 100% | 93.75% | 85.71% | 100% |
Show files with reduced coverage 🔻
St.❔ |
File | Statements | Branches | Functions | Lines |
|---|---|---|---|---|---|
| 🟢 | CollaborationManager.ts | 94.55% (-0.8% 🔻) |
78.95% (-7.72% 🔻) |
100% | 94.55% (-0.8% 🔻) |
Test suite run success
66 tests passing in 4 suites.
Report generated by 🧪jest coverage report action from 8cf8828
| * | ||
| * Operations are batched on timeout basis or if batch is terminated from the outside | ||
| */ | ||
| export class Batch { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe call it BatchedOperation?
| this.#undoRedoManager.put(effectiveOp); | ||
| } | ||
|
|
||
| this.#currentBatch = lastOp === undefined ? null : new Batch(onBatchTimeout, lastOp); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add comments please
No description provided.